package com.topone.Enum;

import lombok.Getter;

/**
 * Created by Administrator on 2017/11/25,0025.
 */
@Getter
public enum ResultEnum {
    COUPON_NOT_EXIT(0,"优惠券不存在"),
    COUPON_IS_OVER(1,"优惠券无库存"),
    ORDER_NOT_EXIST(3,"订单不存在"),
    ORDERDETAIL_NOT_EXIST(4,"订单详情不存在"),
    ORDER_STATUS_ERROR(5,"订单状态不正确"),
    ORDER_CREATE_ERROR(270,"创建订单失败"),
    ORDER_UPDATE_FAIL(6,"取消订单时，更新状态失败"),
    ORDER_DETAIL_EMPTY(7,"取消订单时,订单详情为空"),
    ORDER_PAY_STATUS_ERROR(8,"支付时,支付状态不正确"),
    USERCOUPON_INSERT_FAIL(9,"生成用户优惠券失败"),
    PARAM_ERROR(10,"订单参数不正确"),
    CART_EMPTY(11,"购物车不能为空"),
    ORDER_OWNER_ERROR(12,"该订单不属于当前用户"),
    ORDER_CANCEL_SUCCESS(100,"订单取消成功"),
    ORDER_FINISH_SUCCESS(110,"订单完结成功"),
    COUPON_STATUS_ERROR(120,"商品状态不正确"),
    BUSSINESS_PARAM_ERROR(130,"商家参数不正确"),
    BUSSINESS_SAVE_ERROR(140,"商家申请入驻失败"),
    CONVENIENT_PARAM_ERROR(150,"便民信息参数不正确"),
    TCUSER_PHONR_ERROR(160,"修改用户手机号失败"),
    CREATE_ORDERDETAIL_ERROR(170,"生成单据详情失败"),
    CREATE_ORDER_ERROR(180,"生成单据号失败"),
    REDUCE_COUPONNUM_ERROR(190,"扣库存失败"),
    USER_ERROR(200,"根据openid查询用户失败"),
    SHOPAPPLY_CANCAL_SUCCESS(210,"商家申请取消处理成功"),
    SHOPAPPLY_CHACK_SUCCESS(220,"商家申请入驻成功"),
    SCHEDULETASK_ERROR(230,"查询所有未支付优惠券订单失败"),
    UPDATE_USERCOUPON_ERROR(240,"超时未支付更新失败"),
    FIND_USERCOUPON_ERROR(250,"查询用户优惠券失败"),
    WXPAY_NOTIFY_MONEY_VERIFY_ERROR(260,"微信支付异步通知金额校验不通过"),
    ;
    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
